#ifndef __I2C_SIM_H
#define	__I2C_SIM_H

#include <stdint.h>




#define	IIC_LSB


typedef enum{
	I2C_SIM_OK = 0,
	I2C_SIM_ERROR_ACK,
	I2C_SIM_ERROR_NACK,
	I2C_SIM_ERROR_TIMEOUT,
} I2C_SIM_ERROR;




void i2c_sim_start(void);
void i2c_sim_stop(void);
unsigned char i2c_sim_wait_ack(void);
void i2c_sim_ack(void);
void i2c_sim_nack(void);
void i2c_sim_send_byte(unsigned char u8Data);
unsigned char i2c_sim_read_byte(void);

#endif
